import { Component } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { DEFAULT_LANG, I18N_LANGUAGES } from '../config/language-config';
import { MenuService } from './@core/services/menu/menu.service';
@Component({
  selector: 'da-app',
  templateUrl: './app.component.html'
})
export class AppComponent {
  currentLang = localStorage.getItem('lang') || window.navigator.language.toLowerCase() || DEFAULT_LANG;
  constructor(private translate: TranslateService,private menuService: MenuService) {
    this.translate.addLangs(I18N_LANGUAGES);
    translate.setDefaultLang(DEFAULT_LANG);
    translate.use(this.currentLang);
  }
  ngOnInit(): void {

  }
}
